home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / filesy~1 / mfsdefrg.zoo / Makefile.lnx < prev    next >
Encoding:
Makefile  |  1993-07-14  |  1.2 KB  |  59 lines

  1. # Makefile for edefrag, the Linux file system defragmenter
  2. #
  3. # Copyright (C) Stephen Tweedie, 1992
  4. # This file may be distributed under the terms of the GNU
  5. # General Public License. 
  6.  
  7. CC = gcc
  8.  
  9. #For the brave...
  10. #CFLAGS = -N -O6 -Wall -DNODEBUG
  11. #LDFLAGS = -N -s
  12.  
  13. #Recommended compiler options
  14. CFLAGS = -Wall -g
  15. LDFLAGS = -g
  16.  
  17. PROGS = defrag edefrag
  18.  
  19. all:    $(PROGS)
  20.  
  21. defrag:        defrag.o minix.o misc.o buffers.o
  22.     gcc $(LDFLAGS) -o $@ $^
  23.  
  24. edefrag:    edefrag.o ext.o misc.o ebuffers.o
  25.     gcc $(LDFLAGS) -o $@ $^
  26.  
  27. defrag.o:    defrag.c
  28.     gcc $(CFLAGS) -DMINIXFS -c -o $@ $<
  29.  
  30. edefrag.o:    defrag.c
  31.     gcc $(CFLAGS) -DEXTFS -c -o $@ $<
  32.  
  33. buffers.o:    buffers.c
  34.     gcc $(CFLAGS) -DMINIXFS -c -o $@ $<
  35.  
  36. ebuffers.o:    buffers.c
  37.     gcc $(CFLAGS) -DEXTFS -c -o $@ $<
  38.  
  39. minix.o:    minix.c
  40.     gcc $(CFLAGS) -DMINIXFS -c -o $@ $<
  41.  
  42. ext.o:    ext.c
  43.     gcc $(CFLAGS) -DEXTFS -c -o $@ $<
  44.  
  45. clean:
  46.     rm -f $(PROGS) *.o core tmp_make
  47.  
  48. tags:
  49.     /usr/emacs/etc/etags *.[ch] README CHANGES INSTALL
  50. dep:
  51.     sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
  52. # fudge for extfs dependencies
  53.     $(CPP) -M defrag.c | sed "s/defrag.o/edefrag.o/" >> tmp_make
  54.     $(CPP) -M buffers.c | sed "s/buffers.o/ebuffers.o/" >> tmp_make
  55.     for i in *.c; do $(CPP) -M $$i; done >> tmp_make
  56.     cp tmp_make Makefile
  57.  
  58. ### Dependencies:
  59.